/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: IntergDemo
 * Author:   xbliu
 * Date:     2020/7/1 11:25
 * Description: 包装类
 * History:
 * <author>          <time>          <version>          <desc>
 * xbliu           修改时间           版本号              描述
 */
package c_008.intgerdemo;

/**
 * @Classname IntergDemo
 * @Description TODO
 * @Date 2020/7/1 11:25
 * @Created by xbliu
 */
public class IntergDemo {
    public static void main(String[] args) {
        int a = 10000;
        Integer i = new Integer(10000);
        Integer i1 = Integer.valueOf(a);
        int i3 = i.intValue();
        System.out.println("i:" + i);
        System.out.println("i1:" + i1);
        System.out.println("a == i:"+(a == i));
//        System.out.println("i == i1:"+(i == i1));
//        System.out.println("i == i3:"+(i == i3));

        Integer a1 = 100;
        Integer a2 = 100;
        Integer a3 = 129;
        Integer a4 = 129;
        System.out.println(a1 == a2);
        System.out.println(a3 == a4);

    }

}
